package net.qiqb.usr.points.infrastructure.persistence;

import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import net.qiqb.usr.points.domain.Points;
import net.qiqbframework.commandhandling.CommandHandler;
import net.qiqbframework.persisthanding.PersistHandler;
import net.qiqbframework.persisthanding.PersistType;
import org.springframework.stereotype.Component;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since
 */
@Slf4j
@Component
@AllArgsConstructor
public class PointsPersistence {

    @PersistHandler(type = PersistType.ADD)
    public void doAdd(Points points) {

        throw new RuntimeException("不能保存积分");

    }

}